<?php
global $arrLogoTeamEuro2012;
$arrData    = isset($this->arrData[$this->arrLeague[0]['LeagueID']]['tableRanking'])?$this->arrData[$this->arrLeague[0]['LeagueID']]['tableRanking']:null;
$seasonId   = isset($this->arrData[$this->arrLeague[0]['LeagueID']]['seasonID'])?$this->arrData[$this->arrLeague[0]['LeagueID']]['seasonID']:SEASON_ID;
$leagueId   = isset($this->arrData[$this->arrLeague[0]['LeagueID']]['leagueID'])?$this->arrData[$this->arrLeague[0]['LeagueID']]['leagueID']:LEAGUE_ID;
if ( !empty($arrData) && is_array($arrData) )
{
    $arrData    = TeamSeason::getInstance()->getRankingEuro2012($seasonId, $leagueId, $arrData);
?>
    <div id="footer_bangdau">
        <div id="container_bangdau">
            <div id="vongbang_loaitt" class="left">
                <div id="vongbang_">
                    <a href="javascript:;" id="vongbang" class="txt_black_hover_blue">Vòng bảng</a>
                </div>
                <div id="loai_tructiep">
                    <a href="javascript:;" class="txt_black_hover_blue">Loại trực tiếp</a>
                </div>
            </div>
            <div id="bang_dau" class="left">
                <?php
                foreach($arrData as $dataTableMatch)
                {
                ?>
                    <ul class="left">
                        <li class="name_bangdau"><?php echo $dataTableMatch['Name'];?></li>
                        <?php
                        if(!empty($dataTableMatch['Team']))
                        {
                            $classLi = 'bg_le';
                            foreach($dataTableMatch['Team'] as $key=>$dataTeam)
                            {

                                if(($key+1)%2==0)
                                {
                                    $classLi = 'bg_chan';
                                }
                                if(($key+1)==count($dataTableMatch['Team']))
                                {
                                    $classLi.=' li_last';
                                }
                        ?>
                                <li class="<?php echo $classLi;?>">
                                    <span class="number_stt"><?php echo $key+1;?></span>
                                    <p><span><img src="<?php echo $this->config['euro2012']['images'].$arrLogoTeamEuro2012[$dataTeam['team_id']];?>" align="<?php echo $dataTeam['name'];?>" title="<?php echo $dataTeam['name'];?>" /></span><span><?php echo $dataTeam['name'];?></span></p>
                                    <span>0</span>
                                </li>
                        <?php
                            }
                        }
                        ?>
                    </ul>
                <?php
                }
                ?>
            </div>
        </div>
    </div>
<?php
}//end if
?>